package com.qf;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class test {

    @Autowired
    private StringRedisTemplate stringRedisTemplate;

    @Test
    public void demo01(){

        //redisTemplate.opsForValue().set("temp3","tom");

        //String temp1 = (String) redisTemplate.opsForValue().get("tem1");
        System.out.println(stringRedisTemplate.opsForValue().get("thresholdMin17"));
    }


}
